package cc.mrbird.demo.anno;

import cc.mrbird.demo.config.HelloWorldConfiguration;
import cc.mrbird.demo.config.HelloWorldImportSelector;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @Enable模块驱动-
 * 1.注解驱动； 类似@EnableWebMvc
 * 2.接口编程 HelloWorldImportSelector
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
//@Import(HelloWorldConfiguration.class)    //注解驱动
@Import(HelloWorldImportSelector.class)     //接口编程
public @interface EnableHelloWorld {
}
